#!/bin/sh

ss_user()

{

  if [ "$1" = "help" ];then
    echo "
          max_ped_load=20
          current_pem_load=0
          max_pem_load=40
          current_hem_load=0
          max_hem_load=20
          current_hls_load=0
          max_hls_load=20
          current_fcc_load=0
          max_fcc_load=0
          current_storage=13083
          max_storage=102400
          total_sessions=9
          failure_sessions=0
          current_online_sessions=0
          max_online_sessions=1
          vod_online_sessions=0
          tvod_online_sessions=0
          live_online_sessions=0
          pull_online_sessions=0
          tstv_online_sessions=0"

  
else
   user=`grep "$1" /opt/fonsview/NE/ss/data/proc/sts/cluster| awk -F '=' '{print $2}'`
   echo $user
 fi
}


if [ "$1" = "ss_user" ];then
  ss_user $2

fi


